package com.baomidou.springwind.service;

import com.baomidou.framework.service.ISuperService;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.springwind.entity.Employee;

import java.util.List;

/**
 * Created by yhx on 2016/12/13.
 */
public interface IEmployeeService extends ISuperService<Employee> {
    /**
     * 查询员工信息
     *
     * @param id
     * @return
     */
    List<Employee> selectEmployeeById(String id);

    Page<Employee> selectAllEmployee(Page<Employee> page);

    Page<Employee> selectByEmployeeNum(Page<Employee> page, String employeenum);

    Page<Employee> selectByEmployeeName(Page<Employee> page, String name);

    Page<Employee> selectByDepartmentName(Page<Employee> page, String name);

    boolean upDateEmployeeById(Employee employee);

    int deleteEmployeeById(String id);

}
